<?php
	
	function bootstrap($folder)
	{
		$files = glob($folder.'/*');
		foreach($files as $file)
		{
			if(is_dir($file))
			{
				bootstrap($file);
			}
			else
			{
				$ext = explode('.', $file);
				$count = count($ext)-1;

				$ext = $ext[$count];
				
				if($ext == 'php' && $file != $folder.'/func_bootstrap.php')
				{
					include($file);
				}
			}
			
		}
	}
?>